import 'package:flutter_test/flutter_test.dart';
import 'package:jetour_line/jetour_line.dart';
import 'package:jetour_line/jetour_line_platform_interface.dart';
import 'package:jetour_line/jetour_line_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockJetourLinePlatform 
    with MockPlatformInterfaceMixin
    implements JetourLinePlatform {

  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

void main() {
  final JetourLinePlatform initialPlatform = JetourLinePlatform.instance;

  test('$MethodChannelJetourLine is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelJetourLine>());
  });

  test('getPlatformVersion', () async {
    JetourLine jetourLinePlugin = JetourLine();
    MockJetourLinePlatform fakePlatform = MockJetourLinePlatform();
    JetourLinePlatform.instance = fakePlatform;
  
    expect(await jetourLinePlugin.getPlatformVersion(), '42');
  });
}
